package com.fqgj.sentry.controller.pc.request.rule.addAndUpdate;

import com.fqgj.sentry.policy.engine.domain.Variable;
import com.fqgj.sentry.policy.engine.domain.VariableOrConstant;

import java.io.Serializable;

public class VariableOrConstantVo implements Serializable {


    private Boolean isVar;

    private VariableVo variable;

    private Object constant;

    /**
     * 字段 名称
     */
    private String displayName;

    public Boolean getIsVar() {
        return isVar;
    }

    public VariableOrConstantVo setIsVar(Boolean var) {
        isVar = var;
        return this;
    }

    public VariableVo getVariable() {
        return variable;
    }

    public VariableOrConstantVo setVariable(VariableVo variable) {
        this.variable = variable;
        return this;
    }

    public Object getConstant() {
        return constant;
    }

    public VariableOrConstantVo setConstant(Object constant) {
        this.constant = constant;
        return this;
    }

    public String getDisplayName() {
        return displayName;
    }

    public VariableOrConstantVo setDisplayName(String displayName) {
        this.displayName = displayName;
        return this;
    }
}
